from time import sleep

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('http://192.168.20.244/ecshop/admin/privilege.php?act=login')
driver.maximize_window()

driver.find_element(By.NAME,'username').send_keys('caichang')
driver.find_element(By.NAME,'password').send_keys('caichang1')
driver.find_element(By.CLASS_NAME,'btn-a').click()



sleep(3)
driver.back()
sleep(3)
driver.forward()
sleep(3)
driver.refresh()

